package com.kakaxi.mybilibili.module.home.live.model;

import com.alibaba.fastjson.JSONObject;
import com.kakaxi.mybilibili.common.WebUrlConst;
import com.kakaxi.mybilibili.net.FastJsonCacheRequest;
import com.kakaxi.mybilibili.net.Netroid;
import com.vincestyling.netroid.Listener;

/**
 * 直播间数据层实现类
 * Created by kakaxi on 16/11/4.
 */

public class LiveRoomModel implements ILiveRoomModel {

    @Override
    public void getLiveRoomData(int roomId, Listener<JSONObject> listener) {
        Netroid.addRequest(new FastJsonCacheRequest(WebUrlConst.LIVE_ROOM_URL + roomId, null,
                listener, null), true);
    }

}
